﻿using System;
using System.Linq;
using VisionCloud.Core.Model.Ms;
using VisionCloud.Core.Model.Sys;
using VisionCloud.Domain.Repository.Interface.Sys;

namespace VisionCloud.Domain.Repository.Implement.Sys
{
    public class SysUserDeviceTraceRepository : BaseRepository<SysUserDeviceTrace>, ISysUserDeviceTraceRepository
    {
        public IQueryable<DeviceLastAddressView> QueryDeviceByUser(Guid userId)
        {
            return from d in Db.DeviceLastAddressView
                   where d.DeviceUserId == userId
                   select d;
        }
    }
}